<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>酒店详情</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/plugins/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/plugins/jquery/jquery.min.js"></script>
    <script src="/js/plugins/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/hotelContent.css"/>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <script src="/js/common.js"></script>


    <script>
        $(function () {
            var params = getParams();
            if (params) {
                $.get('/hotels/'+params.id,function (data) {
                    $('.hotels').renderValues(data);
                });
            }
            $('#commentBtn').click(function () {
                window.location.href="/mine/hotelForm.html?id="+params.id;
            });
        });
    </script>
</head>
<body>
<div class="search-head">
    <div class="row nav-search">
        <div class="col">
            <a href="javascript:history.go(-1);">
                <span><i class="fa fa-chevron-left"></i></span>
            </a>
        </div>
        <div class="col">
        </div>
    </div>
</div>

<div class="hotels">
    <img  class="cover" render-src="coverUrl">
    <div class="container" style="text-align: center">
        <h6 class="title" render-html="name" ></h6>
    </div>
    <div class="container">
        <div class="content" render-html="hotelContent.content"></div>
    </div>

    <hr>

    <div class="container d-flex">
        <div class="p-2  flex-fill">
            <i class="fa fa-thumbs-o-up"  id="likeBtn"> </i>
        </div>
        <div class="p-2  flex-fill"><i class="fa  fa-commenting-o"  id="commentsBtn"> </i>
        </div>
        <div class="p-2  flex-fill"><i class="fa fa-star-o" id="collectBtn"> </i>
        </div>
    </div>
</div>


<div class="operation">
    <button class="btn" id="commentBtn">立即预定</button>
</div>
</body>
</html>